package ANDROID_RLK_SQLOBJ;

public class Example {
    protected void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        database = openOrCreateDatabase(DB_NAME, Context.MODE_PRIVATE, null);

        if (bundle != null) {
            final String[] queryClauseArray = bundle.getStringArray(KEY_QUERY);
            if (queryClauseArray != null) {
                for (final String queryClause : queryClauseArray) {
                    final Cursor query = database.query(DATABASE_TABLE,
                            new String[]{KEY_FILE, KEY_DATE, KEY_COMMENT},
                            null,
                            null,
                            null,
                            null,
                            queryClause);
                    files.add(query.getString(0));
                    dates.add(query.getString(1));
                    comments.add(query.getString(2));

                }
            }
        }
    }
}
